<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-23 19:17:32
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-23 19:27:29
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
            /* float: left; 浮动元素脱离普通流，向左移动 */
        }
        .product{
            margin:50px auto;
            width: 1226px;
            height: 628px;
            background-color: pink;
        }
        .left{
            float: left;
            width: 234px;
            height: 628px;
            background-color: skyblue;
        }
        .right{
            float: right;
            width: 978px;
            height: 628px;
            background-color: brown;
        }
        .right li{
            float:left;
            margin-right: 14px;
            margin-bottom: 14px;
            width: 234px;
            height: 300px;
            background-color: orange;
        }
        /* 每四个浮动元素，最后一个浮动元素不加右边距 */
        .right li:nth-child(4n){ 
            margin-right: 0;
        }
        /* 特点：顶对齐 具备有内快显示模式特点 */
        /* .one{
            width: 100px;
            height: 100px;
            background-color: brown;
            float:left
        }
        .two{
            width: 200px;
            height: 200px;
            background-color: orange;
            float:right
        } */
    </style>
</head>
<body>
    <!-- 版心 左右 右面 8个产品 8个li-->
     <div class="product">
        <div class="left"></div>
        <div class="right">
            <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
     </div>
    <!-- <div class="one">one</div>
    <div class="two">two</div> -->
</body>
</html>